// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 添加影视信息 POST /api/filmTelevision/add */
export async function addFilmTelevisionUsingPOST(
  body: API.FilmTelevisionAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/filmTelevision/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除影视信息 POST /api/filmTelevision/delete */
export async function deleteFilmTelevisionUsingPOST(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/filmTelevision/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 根据ID查询影视信息 POST /api/filmTelevision/info/${param0} */
export async function getFilmTelevisionByIdUsingPOST(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getFilmTelevisionByIdUsingPOSTParams,
  options?: { [key: string]: any },
) {
  const { id: param0, ...queryParams } = params;
  return request<API.BaseResponseFilmTelevisionVO_>(`/api/filmTelevision/info/${param0}`, {
    method: 'POST',
    params: { ...queryParams },
    ...(options || {}),
  });
}

/** 查询影视列表 POST /api/filmTelevision/list */
export async function listFilmTelevisionUsingPOST(
  body: API.FilmTelevisionQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListFilmTelevisionVO_>('/api/filmTelevision/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改影视信息 POST /api/filmTelevision/update */
export async function updateFilmTelevisionUsingPOST(
  body: API.FilmTelevisionUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/filmTelevision/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
